import java.util.*;
import java.math.*;
public class euler005 {
	static public void main(String[] params) {
		final byte P[] = new byte[]{2,3,5,7,11,13,17,19}, N = 20;
		byte i;
		long s=1,p=1;
		for(i=0; i<P.length; i++) {
			p=1;
			while(p*P[i] < N) p*=P[i];
			s *= p;
		}
		System.out.println(s);
	}
}

